<ul class="gallery gallery1">
    <li ng-repeat="image in images">
        <a ng-click="selectImage($index)">
            <img ng-src="{{image.thumbUrl}}" class="img-thumbnail">
        </a>
    </li>
</ul>